/*
 * To change this license header, choose License Headers in Project Properties.
 * To change this template file, choose Tools | Templates
 * and open the template in the editor.
 */

package controller;

import java.util.Date;
import java.util.List;
import model.dao.service.Student_CourseDetailsDAOService;
import model.entities.Student_CourseDetails;
import model.dao.Student_CourseDetailsDAO;
import model.entities.Course;
import model.entities.Student;

/**
 *
 * @author K u Ku
 */
public class Student_CourseDetailsController implements Student_CourseDetailsDAOService{

    @Override
    public List<Student_CourseDetails> getStudent_CourseDetailsList() {
        return Student_CourseDetailsDAO.getInstance().getStudent_CourseDetailsList();
    }

    @Override
    public Student_CourseDetails getStudent_CourseDetailsByID(int detailsID) {
        return Student_CourseDetailsDAO.getInstance().getStudent_CourseDetailsByID(detailsID);
    }

    @Override
    public boolean insertStudent_CourseDetails(Student_CourseDetails scd) {
        return Student_CourseDetailsDAO.getInstance().insertStudent_CourseDetails(scd);
    }

    @Override
    public boolean updateStudent_CourseDetails(Student_CourseDetails scd) {
        return Student_CourseDetailsDAO.getInstance().updateStudent_CourseDetails(scd);
    }

    @Override
    public boolean deleteStudent_CourseDetails(int id) {
        return Student_CourseDetailsDAO.getInstance().deleteStudent_CourseDetails(id);
    }

    @Override
    public List<Student_CourseDetails> findByID(int id) {
        return Student_CourseDetailsDAO.getInstance().findByID(id);
    }

    @Override
    public List<Student_CourseDetails> findByRegisterDate(Date date) {
        return Student_CourseDetailsDAO.getInstance().findByRegisterDate(date);
    }

    @Override
    public List<Student_CourseDetails> findByStopDate(Date date) {
        return Student_CourseDetailsDAO.getInstance().findByStopDate(date);
    }

    @Override
    public List<Course> getCourseByStudentID(int studentID) {
        throw new UnsupportedOperationException("Not supported yet."); //To change body of generated methods, choose Tools | Templates.
    }

    @Override
    public List<Student> getStudentByCourseID(int courseID) {
        throw new UnsupportedOperationException("Not supported yet."); //To change body of generated methods, choose Tools | Templates.
    }
    
}
